import { Address, Array, AutoIncrementId, Avatar, CreateDate, Entity, Mobile, PrimaryUuid, Realname, Title, UpdateDate, Uuid } from "../utils";

@Entity({ name: 'fuli_provider' })
export class FuliProvider {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    provider_id: number;

    @Title()
    title: string;

    @Mobile()
    mobile: string;

    @Avatar()
    avatar: string;

    @Realname()
    realname: string;

    @Address()
    address: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;

    @Uuid()
    user_id: string;

    @Array({ default: [] })
    permission: string[];
}